Global Methods and Declarations
In the Object drop-down menu of the script editor, the first listed item is (General). Select this item to display the global declarations section of a HyperPoint. Use this section to declare global variables to be used by multiple methods (and other HyperPoints), and also to create custom methods within the HyperPoint.
A global method can be either a subroutine with no return value (Sub) or a function with a return value (Function), and can accept parameters as expected. Global methods are named by prefacing the method name with the HyperPoint name in which the method resides, followed by an underscore (POINTNAME_MethodName). The scope of all global variables and methods is the entire HSS.
Example
The following example shows a function with a return value:
'(Declarations)
'This variable can be initialized once and used throughout the HSS
Dim objMyPoints
'This function may be used throughout the HSS
Function HPP_EXAMPLE_ReturnCaps(strParam)
HPP_EXAMPLE_ReturnCaps = ucase(strParam)
End Function
'End of (Declarations)

